package com.jing.gradle.plugin.study.task;

import org.gradle.api.DefaultTask;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.TaskAction;

public abstract class ClassParseTask extends DefaultTask {


    @Input
    public abstract Property<String> getClassFilePath();

    @Input
    public abstract Property<String> getOutputFilePath();


    @TaskAction
    public void parse(){
        System.out.println("start parse:" + getClassFilePath().get());

        System.out.println("end parse:" + getClassFilePath().get() + " > " + getOutputFilePath().get());
    }

}
